package com.bone.business.service.impl;

import java.util.List;
import java.util.Map;

import com.bone.business.dao.BusinessDAO;
import com.bone.business.po.Business;
import com.bone.business.service.BusinessService;
import com.bone.page.Page;

public class BusinessServiceImpl implements BusinessService {
	
	private BusinessDAO businessDAO;

 
	/**
	 * 取符合条件的模块的数量.
	 * @param para
	 * @return
	 */
	public Long queryBusinessCountByParam(Map<String, Object> para){
		return this.businessDAO.queryBusinessCountByParam(para);
		
	}
	
	/**
	 * 
	 * @param parameter
	 * @return
	 */
	public List<Business> queryBusinessPageByParam(Map<String, Object> parameter){
		return this.businessDAO.queryBusinessPageByParam(parameter);
	}
	
	/**
	 * 
	 * @param parameter
	 * @return
	 */
	public List<Business> queryBusinessListByParam(Map<String, Object> parameter){
		return this.businessDAO.queryBusinessListByParam(parameter);
	}

	/**
	 * 
	 * @param parameter
	 * @return 
	 */
	public Business queryBusinessByBusinessId(Long businessId){
		return businessDAO.queryBusinessByBusinessId(businessId);
	}
	
	
	public BusinessDAO getBusinessDAO() {
		return businessDAO;
	}

	public void setBusinessDAO(BusinessDAO businessDAO) {
		this.businessDAO = businessDAO;
	}
}
